package com.hehua.dataSource;

/**
 * 处理模板 固定逻辑 获取数据 转换数据 入库
 */
public abstract class DataProcessorTemplate {

    /**
     * 处理数据
     */
    public final void processData() {
        Object data = fetchData();
        Object standardData = transformData(data);
        storeData(standardData);
    }

    protected abstract Object fetchData();
    protected abstract Object transformData(Object data);
    protected abstract void storeData(Object data);

}
